<template>
  <span>实现一些CSS布局</span>
  <div id="body">
    <img src="https://bearwind-education.oss-cn-hangzhou.aliyuncs.com/course/mmexport1624930494824.jpg" alt="..." height="400" width="" />
    <p>Text text text...</p>

    <img src="https://bearwind-education.oss-cn-hangzhou.aliyuncs.com/course/mmexport1624930364055.jpg" alt="..." height="400" width="300" />
    <p>Text text text...</p>

    <img src="https://bearwind-education.oss-cn-hangzhou.aliyuncs.com/course/mmexport1624930364055.jpg" alt="..." height="400" width="300" />
    <p>Text text text...</p>
  </div>
  <TabBar />
</template>
<script>
import TabBar from "@/components/layout/tab-bar";
export default {
  name: "news",
  components: { TabBar },
}
</script>

<style lang="less" scoped>
#body {
  display: grid;
  padding: 2rem;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  font: 500 100%/1.5 system-ui;

  img {
    max-width: 100%;
    height: auto;
  }
  @media (max-width: 650px) {
    body {
      display: block;
      font-size: 80%;
    }
    p {
      position: relative;
      margin: -3rem 0 2rem 1rem;
      padding: 1rem;
      background: rgba(white, 0.8);
    }
  }
}
  /*}*/
</style>
